package cn.hp.beauty.controller;

import cn.hutool.crypto.digest.BCrypt;

public class Test {
    public static void main(String[] args) {
//加密
        String hashpw = BCrypt.hashpw("000000", BCrypt.gensalt());
        System.out.println(hashpw);
        //比较
        System.out.println(BCrypt.checkpw("000000", hashpw));
    }
}
